def canPlaceFlowers(self, flowerbed, n):